package ar.edu.utn.xcontainer;

import ar.edu.utn.exceptions.ReflectionException;
import ar.edu.utn.fixture.*;
import ar.edu.utn.injectors.*;


import java.lang.reflect.InvocationTargetException;


public class Prueba {
	 protected ComposeComponentDescription com;
	/**
	 * @param args
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 * @throws InvocationTargetException 
	 * @throws IllegalArgumentException 
	 */
	public static void main(String[] args) throws ReflectionException{
		// TODO Auto-generated method stub
		Container container=new Container();
		container.addComponent("personaService", "ar.edu.utn.fixture.PersonaService");
		container.addConstructorArgument("personaService", "java.lang.String", null);
		/*container.addSimpleDependency("personaService", "name", ");*/
		
		ComposeComponentDescription component=container.getComponent("personaService");
		
		for(Parameter parameter:component.getConstructorArguments()){
			System.out.println(parameter.getType());
			System.out.println(parameter.getValue());
			
			
		}
	}

}
